package com.woniu.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author 房东
 * @version 1.0
 * @date 2021/9/12 16:07
 * @Description 管理员的启动类
 */
@SpringBootApplication
@MapperScan("com.woniu.system.dao")
public class ManageApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManageApplication.class, args);
    }

    @Bean// 注入SpringSecurity.BCryptPasswordEncoder类
    public BCryptPasswordEncoder bCryptPasswordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
